﻿import request from '/@/utils/request';
enum Api {
  AddPerformancePredictions = '/api/performancePredictions/add',
  DeletePerformancePredictions = '/api/performancePredictions/delete',
  UpdatePerformancePredictions = '/api/performancePredictions/update',
  PagePerformancePredictions = '/api/performancePredictions/page',
  DetailPerformancePredictions = '/api/performancePredictions/detail',
}

// 增加性能预测模型表
export const addPerformancePredictions = (params?: any) =>
	request({
		url: Api.AddPerformancePredictions,
		method: 'post',
		data: params,
	});

// 删除性能预测模型表
export const deletePerformancePredictions = (params?: any) => 
	request({
			url: Api.DeletePerformancePredictions,
			method: 'post',
			data: params,
		});

// 编辑性能预测模型表
export const updatePerformancePredictions = (params?: any) => 
	request({
			url: Api.UpdatePerformancePredictions,
			method: 'post',
			data: params,
		});

// 分页查询性能预测模型表
export const pagePerformancePredictions = (params?: any) => 
	request({
			url: Api.PagePerformancePredictions,
			method: 'post',
			data: params,
		});

// 详情性能预测模型表
export const detailPerformancePredictions = (id: any) => 
	request({
			url: Api.DetailPerformancePredictions,
			method: 'get',
			data: { id },
		});


